/**
 * Created by Amaris on 2016/11/8.
 */



managerApp.factory("feedbackFactory", ['$http', function ($http) {
    var feedback = {};

    feedback.getFeedback = function (params, callback) {
        angularHttpGet($http, "/smtool_project/api/feedback/getFeedback", params, function (response) {
            callback(response);
        })
    };

    feedback.createFeedback = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/feedback/createFeedback", params, function (response) {
            callback(response);
        })
    };

    feedback.editFeedback = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/feedback/editFeedback", params, function (response) {
            callback(response);
        })
    };

    return feedback;
}]);
